Balloon: Click on this button to invoke the search.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬wsSet wdID,"11","Hilite", "FALSE"┬put empty into searchFor┬put empty into buildList┬wsSet wdID,"5","Text", ""┬wsSet wdID,"14","Text", ""┬get wsGet(wdID,"3","Text")┬put it into searchFor┬if searchFor ¡ empty then┬ wsSet wdID,"2","Disabled", "true"┬ put the number of cards in this stack into x┬ wsSet wdID,"8","Max", x┬ lock screen┬ if x > 1 then┬ put the number of this card into returnPoint┬ go to the first card of this stack┬ end if┬ wsSet wdID,"8","Value", "1"┬ find searchFor┬ if the result is not empty then┬ put "No occurrences found..." into buildList┬ else┬ put the id of this card into LoopCheck┬ put the foundText&"╫"&&the short name of this cd&return after buildList ┬ go next cd┬ put the number of this cd into i┬ wsSet wdID,"8","Value", i ┬ put empty into currID┬ repeat until currID = LoopCheck┬ find searchFor ┬ put the id of this card into currID┬ if currID = LoopCheck then ┬ exit repeat┬ wsSet wdID,"8","Value", x┬ end if ┬ put the foundText&"╫"&&the short name of this cd&return after buildList┬ put the number of this cd into i┬ wsSet wdID,"8","Value", i ┬ go next cd┬ end repeat┬ end if┬ if the number of lines in buildList > 1 then┬ delete the last char of buildList┬ put fullSort(buildList,"t=u","d=a") into buildList┬ end if┬ put the number of lines in buildList into theLines┬ wsSet wdID,"8","Value", x┬ wsSet wdID,"2","Disabled", "false"┬ wsSet wdID,"5","Text", buildList┬ wsSet wdID,"14","Text", theLines┬ if x > 1 then go to card returnPoint┬ wsSet wdID,"8","Value","0"┬ unlock screen┬end if┬wsSet wdID,"2","Disabled", "FALSE"┬--end mouseUp┬┬┬
ItemType: PUSH
Rect: 215,177,275,197
AutoSize: FALSE
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
Balloon: Click on this button to cancel the search.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬put the name of this card into imHere┬get wsGet(wdID,"5","selectionText")┬if it = empty or it = "no occurrences found..." then┬ beep┬ wsSet wdID,"11","Hilite", "FALSE"┬else┬ delete word 1 of it┬ put it into goTo┬ if goTo ¡ imHere then┬ if word 1 of goTo = "card" then┬ do "go to goTo"┬ else┬ do "go to card goTo"┬ end if┬ find searchFor┬ end if┬ if the marked of this cd is true then┬ wsSet wdID,"11","Hilite", "TRUE"┬ else┬ wsSet wdID,"11","Hilite", "FALSE"┬ end if┬end if┬--end mouseUp┬┬┬┬┬
Balloon: Click on this button to mark or unmark selected record.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"5","selectionText")┬if it = empty or it = "no occurrences found..." then┬ beep┬ wsSet wdID,"11","Hilite", "FALSE"┬else┬ if the marked of this cd is true then┬ unmark this card┬ wsSet wdID,"11","Hilite", "FALSE"┬ else┬ mark this card┬ wsSet wdID,"11","Hilite", "TRUE"┬ end if┬ openCard┬end if┬--end mouseUp┬
ItemType: PUSH
Rect: 6,177,69,197
AutoSize: FALSE
Name: Mark All
Balloon: Click on this button to mark all listed records.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"5","Text")┬put it into cardsFound┬if cardsFound = empty or cardsFound = "no occurrences found..." then┬ beep┬else┬ unmark all cds┬ repeat with x=1 to the number of lines in cardsFound┬ delete word 1 of line x of cardsFound┬ put line x of cardsFound into goTo┬ if word 1 of goTo = "card" then┬ set the marked of goTo to true┬ else┬ set the marked of card goTo to true┬ end if┬ end repeat┬ wsSet wdID,"11","Hilite", "TRUE"┬ wsSet wdID,"5","SelectionText", ""┬ openCard┬end if┬--end mouseUp┬
ItemType: PUSH
Rect: 73,177,149,197
AutoSize: FALSE
Name: Unmark All
Balloon: Click on this button to unmark all listed records.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"5","Text")┬put it into cardsFound┬if cardsFound = empty or cardsFound = "no occurrences found..." then┬ beep┬else┬ unmark all cds┬ wsSet wdID,"11","Hilite", "FALSE"┬ wsSet wdID,"5","SelectionText", ""┬ openCard┬end if┬--end mouseUp┬